import{reactive as o}from"vue";import{isNil as r,isString as e}from"lodash-unified";import{FastError as n}from"../error/index.mjs";const t=o({uniAppPlusSplit:!1}),s=()=>({setUniAppPlusSplit(o){t.uniAppPlusSplit=o}}),i=(o,...n)=>{t.uniAppPlusSplit&&"undefined"!=typeof uni&&"undefined"!=typeof plus?n.forEach(n=>{r(n)||console[o.toLowerCase()](e(n)?n:JSON.stringify(n,null,2))}):console[o.toLowerCase()](...n)},p=o=>(r,e,n)=>{const t=`[Fast-${o}-${r}]`;n?i(o,`${t}${e?` ${e}`:""}`,n):i(o,`${t}${e?` ${e}`:""}`)},l=p("Log"),u=p("Warn"),$=p("Debug"),f=(o,t)=>{r(t)||(e(t)?console.error(new n(`[Fast-${o}] ${t}`)):i("Error",`[Fast-Error-${o}]`,t))},a=(o,r)=>{throw new n(`[Fast-${o}] ${r}`)};export{$ as consoleDebug,f as consoleError,l as consoleLog,u as consoleWarn,a as throwError,s as useConsole};
//# sourceMappingURL=index.mjs.map
